import { privateRequest } from '@/utils/request';
import type { IInformationInfo, IPeopleInfo } from './type';

enum API {
	// 展示信息
	Information = '/home/information',
	// 岗位人员
	People = '/home/people',
}

export const useInformation = () => privateRequest.get<IInformationInfo>(API.Information);
export const usePeople = () => privateRequest.get<IPeopleInfo[]>(API.People);
